from app import db
from datetime import datetime


class DictData(db.Model):
    __tablename__ = "sys_dict_data"
    id = db.Column(db.String(36), primary_key=True)
    dict_sort = db.Column(db.Integer)
    dict_label = db.Column(db.String(64))
    dict_value = db.Column(db.String(64))
    dict_type_id = db.Column(db.String(36), db.ForeignKey("sys_dict_type.id"))
    status = db.Column(db.Integer)
    create_time = db.Column(db.DATETIME, default=datetime.now)
    update_time = db.Column(db.DATETIME, default=datetime.now, onupdate=datetime.now)
    remark = db.Column(db.String(500))

